<?
$page_title="Manage AntiVirus Subscription -  List";
$mindex=3;
$profile_menu=1;
?>
<?include("includes/header.php") ?>

<?
$query="select * from bkitc_product_subscription order by rec_created desc";
$req_info=qry_data($query);
?>
<div class="break"></div>
<div>

</div>
<table   class="table_panel" width="100%"  cellspacing="0" cellpadding="4">
	<tr  align="left">
	<th width="5">S.No</th>

	<th style="width:120px">Reg.Date</th>
	<th>From</th>
	<th >Contact Info </th>
	<th >Mobile  </th>
	<th > Count  </th>
	<th>Pay Date</th>
	<th>Amt</th>
	<th>Pay Remarks</th>
	<th>Status</th>
	<th>View/Edit</th>
	
	
	</tr>
	<? foreach($req_info as $i=>$req) {?>

	<tr <?if($i%2==0) echo 'class="white_bg"'; else echo 'class="grey_bg"' ?>>
	<td><?=$i+1;?></td>
	
	<td ><?=$req["rec_created"];?></td>
	<td><?=$sub_from_status[$req["sub_from"]];?></td>
	<td ><?=$req["centre_name"]." ".$req["contact_name"];?></td>
	<td ><?=$req["contact_mobile"];?></td>
	<td ><?=$req["sub_count"];?></td>
	<td ><?=$req["pay_date"];?></td>
	<td ><?=$req["amount"];?></td>
	<td ><?=$req["pay_remarks"];?></td>
	
	<td><?=(int)$req["req_status"]==0?"Open":"Approved"?></td>
	<td align="center"><a href="edit_subav.php?mode=edit&req_id=<?=$req["rec_id"]?>">View</a></td>
	</tr>
	
	<? } ?>
</table>
	

<?include("includes/footer.php") ?>